package appconfig

import "github.com/spf13/viper"

type Mysql struct {
	Host     string
	Port     int
	User     string
	Password string
	Database string
}
type AppConfig struct {
	Mysql
}

var AppConf *AppConfig

func Init() {
	viper.SetConfigFile("appconfig/dev.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&AppConf)
}
